import request from "../api/api";

type leve = {
    reason: string
    start: string
    end: string
    extend: any
}

// 新增请假列表
export const addLeve = (data: leve) => request.post('/cheng/add', data)


// 查看个人请假列表
export const lookLeveList = () => request.get('/cheng/lookList')


// 查看全部请假列表
export const AllLeveList = () => request.get('/cheng/lookAllList')

// 修改审批状态
export const patchLeveList = (data: any) => request.patch('/cheng/PatchList', data)

